home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / c-lang / phnlgdvk.lha / PhoneLog / src / PhoneLogScanner.h < prev    next >
C/C++ Source or Header  |  1996-05-03  |  1KB  |  44 lines

  1. # ifndef yyPhoneLogScanner
  2. # define yyPhoneLogScanner
  3.  
  4. /* $Id: Scanner.h,v 2.6 1992/08/07 15:29:41 grosch rel $ */
  5.  
  6. /* line 4 "PhoneLogScanner.rex" */
  7. /* EXPORT */
  8.          #include "StringMem.h"   /* For 'PutString' */
  9.          #include "Idents.h"      /* For 'MakeIdent' */
  10.          #include "Positions.h"
  11.          #include "System.h"
  12.  
  13.          typedef struct {
  14.                          tPosition  Position;
  15.                          tStringRef lexstring;
  16.                          int        number;
  17.                         } PhoneLogScanner_tScanAttribute;
  18.  
  19.          extern void PhoneLogScanner_ErrorAttribute(int Token, PhoneLogScanner_tScanAttribute *Attribute);
  20.          /* EXPORT */
  21.  
  22. # define PhoneLogScanner_EofToken    0
  23.  
  24. # ifdef lex_interface
  25. #    define PhoneLogScanner_GetToken    yylex
  26. #    define PhoneLogScanner_TokenLength    yyleng
  27. # endif
  28.  
  29. extern    char *        PhoneLogScanner_TokenPtr    ;
  30. extern    short        PhoneLogScanner_TokenLength    ;
  31. extern    PhoneLogScanner_tScanAttribute    PhoneLogScanner_Attribute    ;
  32. extern    void        (* PhoneLogScanner_Exit) ()    ;
  33.  
  34. extern    void        PhoneLogScanner_BeginScanner    (void);
  35. extern    void        PhoneLogScanner_BeginFile    (char * yyFileName);
  36. extern    int        PhoneLogScanner_GetToken    (void);
  37. extern    int        PhoneLogScanner_GetWord    (char * yyWord);
  38. extern    int        PhoneLogScanner_GetLower    (char * yyWord);
  39. extern    int        PhoneLogScanner_GetUpper    (char * yyWord);
  40. extern    void        PhoneLogScanner_CloseFile    (void);
  41. extern    void        PhoneLogScanner_CloseScanner    (void);
  42.  
  43. # endif
  44.